package com.cyc.quick.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyc.quick.pojo.entity.SysUser;
import com.cyc.quick.pojo.vo.SysUserAddVO;
import com.cyc.quick.pojo.vo.UserInfoVO;
import com.cyc.quick.pojo.vo.UserReq;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenyunchang
 * @since 2021-01-19
 */
public interface ISysUserService extends IService<SysUser> {

    /**
     * 注册用户
     * @param sysUserAddVO 注册用户对象
     * @param request
     */
    void register(SysUserAddVO sysUserAddVO, HttpServletRequest request);

    /**
     * 分页查询用户
     * @param userReq 查询用户筛选参数
     * @return PageInfo<UserInfoVO>
     */
    PageInfo<UserInfoVO> findPage(UserReq userReq);
}
